<?php
	//使用GD库画图
	//需要一个画布
	//$huabu = imagecreate(400,400);
	//创建一个真色彩单词
	$huabu = imagecreatetruecolor(400,400);
	//需要一支笔
	//需要颜色
	$red = imagecolorallocate($huabu,255,0,0);
	$white= imagecolorallocate($huabu,255,255,255);
	$c1 = imagecolorallocate($huabu,255,0,0);
	$c2 = imagecolorallocate($huabu,0,255,0);
	$c3 = imagecolorallocate($huabu,0,0,255);
	$c4 = imagecolorallocate($huabu,188,21,7);
	$c5 = imagecolorallocate($huabu,31,130,26);
	$c6 = imagecolorallocate($huabu,16,6,130);
	//画布颜色
	imagefill($huabu,1,1,$white);
	for($i = 200; $i > 180; $i --){
		imagefilledarc($huabu,150,$i,360,180,0,90,$c4,IMG_ARC_PIE);
		imagefilledarc($huabu,150,$i,360,180,90,120,$c5,IMG_ARC_PIE);
		imagefilledarc($huabu,150,$i,360,180,120,360,$c6,IMG_ARC_PIE);
	}	
	
		imagefilledarc($huabu,150,$i,360,180,0,90,$c1,IMG_ARC_PIE);
		imagefilledarc($huabu,150,$i,360,180,90,120,$c2,IMG_ARC_PIE);
		imagefilledarc($huabu,150,$i,360,180,120,360,$c3,IMG_ARC_PIE);
	header("content-type:image/png");
	imagepng($huabu);
	imagedestroy($huabu);